package net.dfrz.oa.service.impl;

import java.util.List;
import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.dfrz.oa.dao.repository.AutorityRepository;
import net.dfrz.oa.pojo.Autority;
import net.dfrz.oa.service.AutorityService;

@Service
public class AutorityServiceImpl implements AutorityService{

	@Autowired
	private AutorityRepository autorityRepository;
	
	/**
	 * 根据id查询所有权限
	 */
	public List<Autority> findAllById(Set<Integer> id){
		return autorityRepository.findAll(id);
	}
}
